package cn.itcast.service.cargo;

import cn.itcast.domain.cargo.Packing;
import cn.itcast.domain.cargo.PackingExample;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface PackingService {

    /**
     * 分页查询
     */
    PageInfo<Packing> findByPage(
            PackingExample packingExample, int pageNum, int pageSize);

    /**
     * 根据集装箱单删除装箱单
     */
    int deleteByPrimaryKey(String packingListId);


    /**
     * 新增装箱单
     */
    int save(Packing packing);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table co_packing
     *
     * @mbg.generated
     */
    List<Packing> selectByExample(PackingExample example);

    /**
     * 根据集装箱编号查看装箱单
     */
    Packing selectByPrimaryKey(String packingListId);

    /**
     * 更新装箱单
     */
    int update(Packing packing);


    /**
     * 根据id查询装箱单
     * */
    Packing findByPLid(String packingListId);
}
